package com.rinvay.network.access;

/**
 * 网络连接
 * @author Rinvay.T
 * @date 2012-7-19
 * @time 下午5:38:22
 */
public class NetworkAccess
{
    private static NetworkAccess access = null;
    
    private boolean isNetworkValid = true;
    
    private NetworkAccess() {
        
    }
    
    public static NetworkAccess getInstance() {
        if(access == null) {
            access = new NetworkAccess();
        }
        return access;
    }
    
    public void setNetWorkValid(boolean isValid) {
        isNetworkValid = isValid;
    }
    
    public boolean isNetWorkValid() {
        return isNetworkValid;
    }

}
